package top.songxs.gmall.feign.product.fallback;

import lombok.extern.slf4j.Slf4j;
import top.songxs.gmall.common.result.Result;
import top.songxs.gmall.common.result.ResultCodeEnum;
import top.songxs.gmall.feign.product.SkuInfoFeignClient;
import top.songxs.gmall.product.entity.SkuInfo;

import java.util.List;

@Slf4j
public class SkuInfoFeignClientFallback implements SkuInfoFeignClient {
    @Override
    public Result<SkuInfo> getSkuInfo(Long skuId) {
        log.error("getSkuInfo 兜底方案执行了");
        return Result.build(null, ResultCodeEnum.SUCCESS);
    }

    @Override
    public Result<SkuInfo> getPrice(Long skuId) {
        log.error("getPrice 兜底方案执行了");
        return Result.build(null, ResultCodeEnum.SUCCESS);
    }

    @Override
    public Result<List<Long>> getAllSkuId() {
        log.error("getAllSkuId 兜底方案执行了");
        return Result.build(null, ResultCodeEnum.SUCCESS);
    }
}
